package com.spring.boot.mapper;

import com.spring.boot.pojo.Pet;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

//@Mapper
public interface PetMapper {

    // 把Pet中的name属性作为map的key
    @MapKey("name")
    public Map<Integer, Pet> getPetList(String name);

    public Pet getPet();

}
